package com.danhuang.cloud.danhuangcore.service;

import com.danhuang.cloud.danhuangcore.entity.UserInfoDTO;
import com.danhuang.cloud.danhuangcore.model.DhRes;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;



public interface UserDubboService {

    DhRes searchOpenId( @NotBlank(message="openId不能为空") @RequestParam String openId);

    DhRes createUser(@Valid @RequestBody UserInfoDTO userInfoDTO);

}
